$themeColor:#409EFF;
$selectedColor: rgba($color: $themeColor, $alpha: 0.08);
$borderColor:#f1e8e8;
$shadowColor:#0000001a;
$shadow:0 0 4px $shadowColor;

.components-list {
  padding: 8px;
  box-sizing: border-box;
  height: 100%;
  .components-item {
    display: inline-block;
    width: 48%;
    margin: 1%;
    transition: transform 0ms !important;
  }
  .el-collapse-item__content {
    padding-bottom: 0;
  }
  border: 0px;
  .el-collapse-item__wrap,
  .el-collapse-item__header {
    border: 0px;
  }
}
.components-draggable{
  // padding-bottom: 20px;
}
.components-title{
  font-size: 14px;
  color: #222;
  margin: 6px 2px;
  .svg-icon{
    color: #666;
    font-size: 18px;
  }
}

.components-body {
  padding: 8px 10px;
  background: $selectedColor;
  font-size: 12px;
  cursor: move;
  border: 1px dashed $selectedColor;
  border-radius: 3px;
  .svg-icon{
    color: #777;
    font-size: 15px;
  }
  &:hover {
    border: 1px dashed $themeColor;
    color: $themeColor;
    .svg-icon {
      color: $themeColor;
    }
  }
}

.drawing-board {
  height: 100%;
  min-height: 100px;
  position: relative;
  .components-body {
    padding: 0;
    margin: 0;
    font-size: 0;
  }
  .sortable-ghost {
    position: relative;
    display: block;
    overflow: hidden;
    &::before {
      content: " ";
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      height: 3px;
      background: $themeColor;
      z-index: 2;
    }
  }
  .components-item.sortable-ghost {
    width: 100%;
    height: 60px;
    background-color: $selectedColor;
  }
  .active-from-item {
    & > .el-form-item{
      background: $selectedColor;
      border-radius: 6px;
    }
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: initial;
    }
    & > .component-name{
      color: $themeColor;
    }
  }
  .el-form-item{
    margin-bottom: 15px;
  }
}
.drawing-item{
  position: relative;
  cursor: move;
  &.unfocus-bordered:not(.active-from-item) > div:first-child {
    border: 1px dashed #ccc;
  }
  .el-form-item{
    padding: 12px 10px;
  }
}
.drawing-row-item{
  position: relative;
  cursor: move;
  box-sizing: border-box;
  padding: 0 2px;
  margin-bottom: 15px;
  >.el-form-item {
    border: 1px dashed #ccc;
    border-radius: 3px;
  }
  .drawing-row-item {
    margin-bottom: 2px;
  }
  .el-col{
    margin-top: 22px;
  }
  .el-form-item{
    margin-bottom: 0;
  }
  .drag-wrapper{
    min-height: 80px;
  }
  &.active-from-item{
    .el-form-item {
      border: 1px dashed $themeColor;
    }
  }
  .component-name{
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 12px;
    color: #bbb;
    display: inline-block;
    padding: 0 6px;
  }
}
.drawing-item-hover {
  &:hover {
    & > .el-form-item{
      background: $selectedColor;
      border-radius: 6px;
    }
  } 
}
.drawing-item, .drawing-row-item{
  &:hover {
    // & > .el-form-item{
    //   background: $selectedColor;
    //   border-radius: 6px;
    // }
    & > .drawing-item-copy, & > .drawing-item-delete{
      display: initial;
    }
  }
  & > .drawing-item-copy, & > .drawing-item-delete{
    display: none;
    position: absolute;
    top: -10px;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    font-size: 12px;
    border: 1px solid;
    cursor: pointer;
    z-index: 1;
  }
  & > .drawing-item-copy{
    right: 56px;
    border-color: $themeColor;
    color: $themeColor;
    background: #fff;
    &:hover{
      background: $themeColor;
      color: #fff;
    }
  }
  & > .drawing-item-delete{
    right: 24px;
    border-color: #F56C6C;
    color: #F56C6C;
    background: #fff;
    &:hover{
      background: #F56C6C;
      color: #fff;
    }
  }
}
